package com.limetalks;

import java.util.ArrayList;
import java.util.List;

import com.limetalks.data.User;

public class RemoteMethods {

	public String sayHello(){
		return "Hello";
	}
	
	public String sayHello(String name){
		return "Hello " + name;
	}
	
	public User getUser(String name){
		User user = new User();
		user.setName(name);
		return user;
	}	
	
	public List<User> getUsers(List<String> names){
		List<User> users = new ArrayList<User>();
		for (String name : names) {
			User user = new User();
			user.setName(name);
			users.add(user);
		}
		return users;
	}
}
